﻿using SmartPlant.Model;
using SqlSugar;
using System;

namespace DbContext
{
    /// <summary>
    ///
    ///</summary>
    [SugarTable("LEVEL_INSTRUMENT")]
    public class LevelInstrument : MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CMPNT_ID", IsPrimaryKey = true)]
        public decimal CmpntId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_STAT", IsPrimaryKey = true)]
        public string PdStat { get; set; } = "R";

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "REV_ID")]
        public decimal RevId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DWG_ID")]
        public decimal DwgId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PROJ_ID")]
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SITE_ID")]
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PLANT_ID")]
        public decimal PlantId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "AREA_ID")]
        public decimal AreaId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "UNIT_ID")]
        public decimal UnitId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_NUM")]
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "USER_NAME")]
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_STATUS")]
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_DATE")]
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LOWER_FLUID_NAME")]
        public string PdLowerFluidName
        {
            get
            {
                return _PdLowerFluidName;
            }
            set
            {
                _PdLowerFluidName = value;
                OnPropertyChanged(nameof(PdLowerFluidName));
            }

        }
        private string _PdLowerFluidName;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LOWER_DENSITY")]
        public decimal? PdLowerDensity
        {
            get
            {
                return _PdLowerDensity;
            }
            set
            {
                _PdLowerDensity = value;
                OnPropertyChanged(nameof(PdLowerDensity));
            }

        }
        private decimal? _PdLowerDensity;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LOWER_DENSITY_UID")]
        public string PdLowerDensityUid
        {
            get
            {
                return _PdLowerDensityUid;
            }
            set
            {
                _PdLowerDensityUid = value;
                OnPropertyChanged(nameof(PdLowerDensityUid));
            }

        }
        private string _PdLowerDensityUid;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LEVEL_NOR")]
        public decimal? PdLevelNor
        {
            get
            {
                return _PdLevelNor;
            }
            set
            {
                _PdLevelNor = value;
                OnPropertyChanged(nameof(PdLevelNor));
            }

        }
        private decimal? _PdLevelNor;
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LEVEL_NOR_UID")]
        public string PdLevelNorUid
        {
            get
            {
                return _PdLevelNorUid;
            }
            set
            {
                _PdLevelNorUid = value;
                OnPropertyChanged(nameof(PdLevelNorUid));
            }

        }
        private string _PdLevelNorUid;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_REFERENCE")]
        public string PdReference { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_ABOVE_REF")]
        public string PdAboveRef { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_FOAMING_UP")]
        public string PdFoamingUp { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_FOAMING_LOW")]
        public string PdFoamingLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_CORROSIVE_LOW")]
        public string PdCorrosiveLow
        {
            get
            {
                return _PdCorrosiveLow;
            }
            set
            {
                _PdCorrosiveLow = value;
                OnPropertyChanged(nameof(PdCorrosiveLow));
            }

        }
        private string _PdCorrosiveLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_EROSIVE_LOW")]
        public string PdErosiveLow
        {
            get
            {
                return _PdErosiveLow;
            }
            set
            {
                _PdErosiveLow = value;
                OnPropertyChanged(nameof(PdErosiveLow));
            }

        }
        private string _PdErosiveLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_TOXIC_LOW")]
        public string PdToxicLow
        {
            get
            {
                return _PdToxicLow;
            }
            set
            {
                _PdToxicLow = value;
                OnPropertyChanged(nameof(PdToxicLow));
            }

        }
        private string _PdToxicLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_COAGULAT_LOW")]
        public string PdCoagulatLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_SOLIDFY_LOW")]
        public string PdSolidfyLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_COLORED_LOW")]
        public string PdColoredLow
        {
            get
            {
                return _PdColoredLow;
            }
            set
            {
                _PdColoredLow = value;
                OnPropertyChanged(nameof(PdColoredLow));
            }

        }
        private string _PdColoredLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_TRANSPARENT_LOW")]
        public string PdTransparentLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_BUILD_TEND_LOW")]
        public string PdBuildTendLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DIST_GLASS")]
        public decimal? PdDistGlass { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DIST_GLASS_UID")]
        public string PdDistGlassUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DIELECTRIC_UP")]
        public decimal? PdDielectricUp { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DIELECTRIC_LOW")]
        public decimal? PdDielectricLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_RANGE_MIN")]
        public decimal? PdLRangeMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_RANGE_MAX")]
        public decimal? PdLRangeMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_RANGE_UID")]
        public string PdLRangeUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_LOW")]
        public decimal? PdLAlarmLow
        {
            get
            {
                return _PdLAlarmLow;
            }
            set
            {
                _PdLAlarmLow = value;
                OnPropertyChanged(nameof(PdLAlarmLow));
            }

        }
        private decimal? _PdLAlarmLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_LOW_LOW")]
        public decimal? PdLAlarmLowLow
        {
            get
            {
                return _PdLAlarmLowLow;
            }
            set
            {
                _PdLAlarmLowLow = value;
                OnPropertyChanged(nameof(PdLAlarmLowLow));
            }

        }
        private decimal? _PdLAlarmLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_HIGH")]
        public decimal? PdLAlarmHigh
        {
            get
            {
                return _PdLAlarmHigh;
            }
            set
            {
                _PdLAlarmHigh = value;
                OnPropertyChanged(nameof(PdLAlarmHigh));
            }

        }
        private decimal? _PdLAlarmHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_HIGH_HIGH")]
        public decimal? PdLAlarmHighHigh
        {
            get
            {
                return _PdLAlarmHighHigh;
            }
            set
            {
                _PdLAlarmHighHigh = value;
                OnPropertyChanged(nameof(PdLAlarmHighHigh));
            }

        }
        private decimal? _PdLAlarmHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_LOW")]
        public decimal? PdLTripLow
        {
            get
            {
                return _PdLTripLow;
            }
            set
            {
                _PdLTripLow = value;
                OnPropertyChanged(nameof(PdLTripLow));
            }

        }
        private decimal? _PdLTripLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_LOW_LOW")]
        public decimal? PdLTripLowLow
        {
            get
            {
                return _PdLTripLowLow;
            }
            set
            {
                _PdLTripLowLow = value;
                OnPropertyChanged(nameof(PdLTripLowLow));
            }

        }
        private decimal? _PdLTripLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_HIGH")]
        public decimal? PdLTripHigh
        {
            get
            {
                return _PdLTripHigh;
            }
            set
            {
                _PdLTripHigh = value;
                OnPropertyChanged(nameof(PdLTripHigh));
            }

        }
        private decimal? _PdLTripHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_HIGH_HIGH")]
        public decimal? PdLTripHighHigh
        {
            get
            {
                return _PdLTripHighHigh;
            }
            set
            {
                _PdLTripHighHigh = value;
                OnPropertyChanged(nameof(PdLTripHighHigh));
            }

        }
        private decimal? _PdLTripHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_ALARM_UID")]
        public string PdLTripAlarmUid
        {
            get
            {
                return _PdLTripAlarmUid;
            }
            set
            {
                _PdLTripAlarmUid = value;
                OnPropertyChanged(nameof(PdLTripAlarmUid));
            }

        }
        private string _PdLTripAlarmUid;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_CHEMIC_ABSLT_UP")]
        public string PdLChemicAbsltUp { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_CHEMIC_ABSLT_LOW")]
        public string PdLChemicAbsltLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_SPEC_GRAV_LOW")]
        public decimal? PdSpecGravLow
        {
            get
            {
                return _PdSpecGravLow;
            }
            set
            {
                _PdSpecGravLow = value;
                OnPropertyChanged(nameof(PdSpecGravLow));
            }

        }
        private decimal? _PdSpecGravLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_FLUID_PHASE_LOW")]
        public string PdFluidPhaseLow
        {
            get
            {
                return _PdFluidPhaseLow;
            }
            set
            {
                _PdFluidPhaseLow = value;
                OnPropertyChanged(nameof(PdFluidPhaseLow));
            }

        }
        private string _PdFluidPhaseLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DENS_GRAV_LOW_FLG")]
        public string PdDensGravLowFlg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "FLUID_LOW_ID")]
        public decimal? FluidLowId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_SOURCE_LOW")]
        public string PdSourceLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_PROJ_ID")]
        public decimal? EngProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_REF_ID")]
        public decimal? EngRefId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_HIGH_HIGH_HIGH")]
        public decimal? PdLTripHighHighHigh
        {
            get
            {
                return _PdLTripHighHighHigh;
            }
            set
            {
                _PdLTripHighHighHigh = value;
                OnPropertyChanged(nameof(PdLTripHighHighHigh));
            }

        }
        private decimal? _PdLTripHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_TRIP_LOW_LOW_LOW")]
        public decimal? PdLTripLowLowLow
        {
            get
            {
                return _PdLTripLowLowLow;
            }
            set
            {
                _PdLTripLowLowLow = value;
                OnPropertyChanged(nameof(PdLTripLowLowLow));
            }

        }
        private decimal? _PdLTripLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_HIGH_HIGH_HIGH")]
        public decimal? PdLAlarmHighHighHigh
        {
            get
            {
                return _PdLAlarmHighHighHigh;
            }
            set
            {
                _PdLAlarmHighHighHigh = value;
                OnPropertyChanged(nameof(PdLAlarmHighHighHigh));
            }

        }
        private decimal? _PdLAlarmHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_L_ALARM_LOW_LOW_LOW")]
        public decimal? PdLAlarmLowLowLow
        {
            get
            {
                return _PdLAlarmLowLowLow;
            }
            set
            {
                _PdLAlarmLowLowLow = value;
                OnPropertyChanged(nameof(PdLAlarmLowLowLow));
            }

        }
        private decimal? _PdLAlarmLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_UNIT_PERCENT")]
        public string PdUnitPercent { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CASE_ID", IsPrimaryKey = true)]
        public decimal CaseId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_GEN_ID")]
        public decimal PdGenId { get; set; }
    }
}